export const formComponentConfig = {
  selectLike: () =>
    import('@/common/views/baseComponent/formComp/selectLike.vue'),
};

export const formRenderConfig = {
  name: {
    label: '名称',
    field: 'name',
    componentName: 'input',
  },
  sex: {
    label: '性别',
    field: 'sex',
    componentName: 'select',
    componentProps: {
      options: [
        { label: '男', value: 1 },
        { label: '女', value: 2 },
      ],
    },
  },
  age: {
    label: '年龄',
    field: 'age',
    componentName: 'inputNumber',
  },
  birthday: {
    label: '生日',
    field: 'birthday',
    componentName: 'timePicker',
    componentProps: {
      format: 'YYYY-MM-DD',
    },
  },
  like: {
    label: '喜欢',
    field: 'like',
    componentName: 'selectLike',
    componentProps: {},
  },
};
